﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperSocket.SocketBase.Command;
using SuperSocket.SocketBase;
using SuperWebSocket.SubProtocol;

namespace _21SocketServer.Command
{
    public class KEEP_ALIVE
    {
        public static void Execute(I21Session session, CommandInfo<string> commandInfo)
        {
            session.Command("KEEP_ALIVE");
        }
    }

    public class KEEP_ALIVE_S : StringCommandBase<_21Session>
    {
        public override string Name
        {
            get
            {
                return "KEEP_ALIVE";
            }
        }

        public override void ExecuteCommand(_21Session session, StringCommandInfo commandInfo)
        {
            KEEP_ALIVE.Execute(session, commandInfo);
        }
    }

    public class KEEP_ALIVE_WS : SubCommandBase<_21WebSession>
    {
        public override string Name
        {
            get
            {
                return "KEEP_ALIVE";
            }
        }

        public override void ExecuteCommand(_21WebSession session, SubRequestInfo requestInfo)
        {
            KEEP_ALIVE.Execute(session, requestInfo);
        }

    }
}
